import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';

/**
 * Toast 封装
 */
class ToastUtil{
  static toast(String msg){
    Fluttertoast.showToast(
      msg: msg??'',
      toastLength: Toast.LENGTH_LONG,
      gravity: ToastGravity.CENTER,
      timeInSecForIosWeb: 1,
      backgroundColor: Colors.grey,
      textColor: Colors.white,
      fontSize:15,
    );
  }
}